﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_Profile : System.Web.UI.Page
{
    UserDAO userDAO = new UserDAO();
    protected void Page_Load(object sender, EventArgs e)
    {

        //cần có link dẫn tới viewprofile để lấy đc userID.
        if (Session["User"] != null)
        {
            string userID = Session["User"].ToString();
            IList<UserInfo> userDetail = new List<UserInfo>();
            userDetail.Add(userDAO.GetByID(userID));
            dtlProfile.DataSource = userDetail;
            dtlProfile.DataBind();
        }
        
    }
}